-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BD-46] refactor: replaced legacy checkboxes #2555
[BD-46] refactor: replaced legacy checkboxes #2555
Conversation
Thanks for the pull request, @PKulkoRaccoonGang! When this pull request is ready, tag your edX technical lead. |
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
b95bdf8
to
480ea47
Compare
480ea47
to
1d4bcd6
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2555 +/- ##
==========================================
+ Coverage 91.65% 91.69% +0.03%
==========================================
Files 236 235 -1
Lines 4195 4214 +19
Branches 1012 1021 +9
==========================================
+ Hits 3845 3864 +19
Misses 346 346
Partials 4 4
☔ View full report in Codecov by Sentry. |
1d4bcd6
to
e7165c7
Compare
onChange={() => changeCheckbox(value)} | ||
aria-label={name} | ||
> | ||
{name} {number !== undefined && <Badge className="ml-2" variant="light">{number}</Badge>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid using CSS utility classes in Paragon components as they include !important
, which makes theming/branding difficult for consumers. Consider defining a new .pgn__
namespaced class name or perhaps using <Stack direction="horizontal" gap={2}>
here would make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right
I will fix it
return ( | ||
<DropdownButton variant="outline-primary" id={ariaLabel.current} title={Header}> | ||
<div role="group" aria-label={Header} className="pgn__dropdown-filter-checkbox-group"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[clarification] Is it intentional to remove the role="group"
attribute here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Form.CheckboxSet have role ="group"
by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for confirming! 🎉
onChange={() => changeCheckbox(value)} | ||
aria-label={name} | ||
> | ||
{name} {number && <Badge className="ml-2" variant="light">{number}</Badge>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment as above regarding using CSS utility classes.
@@ -64,7 +64,7 @@ the `arrowUp` and `arrowLeft` keys can be ignored for convenient editing of the | |||
<Form.Control type="password" placeholder="Password" /> | |||
</Form.Group> | |||
<Form.Group> | |||
<Form.Check type="checkbox" label="Confirm the entered data" /> | |||
<Form.Checkbox>Confirm the entered data</Form.Checkbox> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@PKulkoRaccoonGang 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
🎉 This PR is included in version 21.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 22.0.0-alpha.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Deploy Preview
Merge Checklist
example
app?wittjeff
andadamstankiewicz
as reviewers on this PR.Post-merge Checklist